package entity

import "time"

type UserBag struct {
	ID            int       `gorm:"column:id;PRIMARY_KEY"` 
	UserId        int       `gorm:"column:user_id"`
	StoreId       int       `gorm:"column:store_id"`
	BagCode       string    `gorm:"column:bag_code"`
	BagName       string    `gorm:"column:bag_name"`
	BagType       int       `gorm:"column:bag_type"`
	BagPrice      float64   `gorm:"column:bag_price"`
	BagMax        int       `gorm:"column:bag_max"`
	BagCategoryId int       `gorm:"column:bag_category_id"`
	State         int       `gorm:"column:state"`
	CreatedAt     time.Time `gorm:"column:created_at"` 
	UpdatedAt     time.Time `gorm:"column:updated_at"` 
}

func (UserBag) TableName() string {
	return "l_user_bag"
}
